package com.pingan.license.model;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import java.io.Serializable;

/**
 * @AUTHOR:LIUCHAO;
 * @DATE: 2020/12/2 9:42
 */
@Component
public class LicenseCreateModel implements Serializable {
    @Value("${licPath}")
    private String licPath;
    @Value("${issuedTime}")
    private String issued ;
    @Value("${notBefore}")
    private String notBefore ;
    @Value("${notAfter}")
    private String notAfter ;
    @Value("${consumerType}")
    private String consumerType;
    @Value("${consumerAmount}")
    private int consumerAmount ;
    @Value("${info}")
    private String info ;
    /**
     * 私钥的别名
     */
    @Value("${private.key.alias}")
    private String priAlias ;
    /**
     * 该密码生成密钥对的密码
     */
    @Value("${private.key.pwd}")
    private String privateKeyPwd ;
    /**
     * 使用keytool生成密钥对时设置的密钥库的访问密码
     */
    @Value("${key.store.pwd}")
    private String keyStorePwd ;
    @Value("${subject}")
    private String subject ;
    @Value("${priPath}")
    private String priPath ;

    public String getLicPath() {
        return licPath;
    }

    public void setLicPath(String licPath) {
        this.licPath = licPath;
    }

    public String getIssued() {
        return issued;
    }

    public void setIssued(String issued) {
        this.issued = issued;
    }

    public String getNotBefore() {
        return notBefore;
    }

    public void setNotBefore(String notBefore) {
        this.notBefore = notBefore;
    }

    public String getNotAfter() {
        return notAfter;
    }

    public void setNotAfter(String notAfter) {
        this.notAfter = notAfter;
    }

    public String getConsumerType() {
        return consumerType;
    }

    public void setConsumerType(String consumerType) {
        this.consumerType = consumerType;
    }

    public int getConsumerAmount() {
        return consumerAmount;
    }

    public void setConsumerAmount(int consumerAmount) {
        this.consumerAmount = consumerAmount;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    public String getPriAlias() {
        return priAlias;
    }

    public void setPriAlias(String priAlias) {
        this.priAlias = priAlias;
    }

    public String getPrivateKeyPwd() {
        return privateKeyPwd;
    }

    public void setPrivateKeyPwd(String privateKeyPwd) {
        this.privateKeyPwd = privateKeyPwd;
    }

    public String getKeyStorePwd() {
        return keyStorePwd;
    }

    public void setKeyStorePwd(String keyStorePwd) {
        this.keyStorePwd = keyStorePwd;
    }

    public String getSubject() {
        return subject;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }

    public String getPriPath() {
        return priPath;
    }

    public void setPriPath(String priPath) {
        this.priPath = priPath;
    }


}
